home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / eLibPro1.3_setup.exe / Styles / Default (CHT).xsl < prev    next >
Encoding:
Extensible Markup Language  |  2005-01-28  |  14.1 KB  |  414 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     <xsl:output method="html" />
  4.     <!-- main template begins -->
  5.     <xsl:template match="/">
  6.         <HEAD>
  7.             <LINK REL="StyleSheet" TYPE="text/css" HREF="elib.css"></LINK>
  8.             <TITLE>eLibPro σ£ûµ¢╕Φ│çΦ¿è</TITLE>
  9.         </HEAD>
  10.         <BODY leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
  11.             <xsl:apply-templates />
  12.         </BODY>
  13.     </xsl:template>
  14.     <!-- template for individual book begins -->
  15.     <xsl:template match="Book">
  16.         <xsl:variable name="BookID" select="@ID"/>
  17.         <table border="0" cellspacing="0" cellpadding="0" width="100%" class="maintable">
  18.             <tr>
  19.                 <td>
  20.                     <!-- book title, first table in the main table -->
  21.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  22.                         <tr>
  23.                             <td class="maintitle">
  24.                                 <xsl:value-of select="Title" />
  25.                                 <xsl:if test="Subtitle!=''">
  26.                                     <xsl:text> - </xsl:text>
  27.                                     <xsl:value-of select="Subtitle" />
  28.                                 </xsl:if>
  29.                                 <xsl:text></xsl:text>
  30.                                 <xsl:if test="ReleaseDate!=''">(<xsl:value-of select="ReleaseDate" />)
  31.                                 </xsl:if>
  32.                             </td>
  33.                         </tr>
  34.                     </table>
  35.                     <!-- front cover, book details and back cover, second table in the main table -->
  36.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  37.                         <tr>
  38.                             <xsl:if test="FrontCover!=''">
  39.                                 <td class="subtitle" height="17">σ░üΘ¥ó</td>
  40.                             </xsl:if>
  41.                             <td class="subtitle" height="17">Φ⌐│τ┤░Φ│çµûÖ</td>
  42.                             <xsl:if test="BackCover!=''">
  43.                                 <td class="subtitle" height="17">ΦâîΘ¥ó</td>
  44.                             </xsl:if>
  45.                         </tr>
  46.                         <tr valign="top">
  47.                             <xsl:if test="FrontCover!=''">
  48.                                 <td width="1" class="detailsbg">
  49.                                     <a elibhref="elibcover://{FrontCover}">
  50.                                         <img elibsrc="{FrontCover}" border="0" height="200" />
  51.                                     </a>
  52.                                 </td>
  53.                             </xsl:if>
  54.                             <td class="detailsbg">
  55.                                 <table width="100%" border="0" cellspacing="1" cellpadding="0">
  56.                                     <!-- author -->
  57.                                     <xsl:if test="Author!=''">
  58.                                         <tr valign="top">
  59.                                             <td class="celllabel" width="10%" nowrap="1">Σ╜£ΦÇà</td>
  60.                                             <td class="cellvalue">
  61.                                                 <xsl:value-of select="Author" />
  62.                                             </td>
  63.                                         </tr>
  64.                                     </xsl:if>
  65.                                     <!-- publisher -->
  66.                                     <xsl:if test="Publisher!=''">
  67.                                         <tr valign="top">
  68.                                             <td class="celllabel" width="10%" nowrap="1">σç║τëêτñ╛</td>
  69.                                             <td class="cellvalue">
  70.                                                 <xsl:value-of select="Publisher" />
  71.                                             </td>
  72.                                         </tr>
  73.                                     </xsl:if>
  74.                                     <xsl:if test="ISBN!=''">
  75.                                         <tr valign="top">
  76.                                             <td class="celllabel" width="10%" nowrap="1">ISBN</td>
  77.                                             <td class="cellvalue">
  78.                                                 <xsl:value-of select="ISBN" />
  79.                                             </td>
  80.                                         </tr>
  81.                                     </xsl:if>
  82.                                     <xsl:if test="Edition!=''">
  83.                                         <tr valign="top">
  84.                                             <td class="celllabel" width="10%" nowrap="1">τëêµ£¼</td>
  85.                                             <td class="cellvalue">
  86.                                                 <xsl:apply-templates select="Edition" />
  87.                                             </td>
  88.                                         </tr>
  89.                                     </xsl:if>
  90.                                     <!-- release date -->
  91.                                     <xsl:if test="ReleaseDate!=''">
  92.                                         <tr valign="top" width="10%" nowrap="1">
  93.                                             <td class="celllabel" width="10%" nowrap="1">τÖ╝Φíîµùѵ£ƒ</td>
  94.                                             <td class="cellvalue">
  95.                                                 <xsl:value-of select="ReleaseDate" />
  96.                                             </td>
  97.                                         </tr>
  98.                                     </xsl:if>
  99.                                     <xsl:if test="AmazonRating!=''">
  100.                                         <tr valign="top">
  101.                                             <td class="celllabel" width="10%" nowrap="1">Amazonτö¿µê╢Φ⌐òΘææ</td>
  102.                                             <td class="cellvalue">
  103.                                                 <xsl:value-of select="AmazonRating" /> <xsl:text> / 5</xsl:text>
  104.                                             </td>
  105.                                         </tr>
  106.                                     </xsl:if>
  107.                                     <xsl:if test="NumOfReviews!=''">
  108.                                         <tr valign="top">
  109.                                             <td class="celllabel" width="10%" nowrap="1">Φ⌐òΘææσÇïµò╕</td>
  110.                                             <td class="cellvalue">
  111.                                                 <xsl:value-of select="NumOfReviews" />
  112.                                             </td>
  113.                                         </tr>
  114.                                     </xsl:if>
  115.                                     <xsl:if test="MyRating!=''">
  116.                                         <tr valign="top">
  117.                                             <td class="celllabel" width="10%" nowrap="1">σÇïΣ║║Φ⌐òσâ╣</td>
  118.                                             <td class="cellvalue">
  119.                                                 <xsl:value-of select="MyRating" />
  120.                                             </td>
  121.                                         </tr>
  122.                                     </xsl:if>
  123.                                     <xsl:if test="PageCount!=''">
  124.                                         <tr valign="top">
  125.                                             <td class="celllabel" width="10%" nowrap="1">Θáüµò╕</td>
  126.                                             <td class="cellvalue">
  127.                                                 <xsl:value-of select="PageCount" />
  128.                                             </td>
  129.                                         </tr>
  130.                                     </xsl:if>
  131.                                     <xsl:if test="URL!=''">
  132.                                         <tr valign="top">
  133.                                             <td class="celllabel" width="10%" nowrap="1">URL</td>
  134.                                             <td class="cellvalue">
  135.                                                 <a title="{URL}" href="{URL}" class="link">Φ⌐▓µ¢╕τ▒ìτ╢▓Θáü</a>
  136.                                             </td>
  137.                                         </tr>
  138.                                     </xsl:if>
  139.                                 </table>
  140.                             </td>
  141.                             <!-- end of book details -->
  142.                             <!-- back cover -->
  143.                             <xsl:if test="BackCover!=''">
  144.                                 <td align="right" width="1" class="detailsbg">
  145.                                     <a elibhref="elibcover://{BackCover}">
  146.                                         <img elibsrc="{BackCover}" border="0" height="200" />
  147.                                     </a>
  148.                                 </td>
  149.                             </xsl:if>
  150.                         </tr>
  151.                     </table>
  152.                     <!-- related links -->
  153.                     <xsl:if test="Links!=''">
  154.                         <table border="0" cellspacing="1" cellpadding="0" width="100%">
  155.                             <tr>
  156.                                 <td class="subtitle">τ¢╕Θù£τ╢▓ΘáüΘÇúτ╡É</td>
  157.                             </tr>
  158.                             <tr><td class="cellalt">
  159.                                 <xsl:for-each select="Links/Link">
  160.                                     <xsl:value-of select="Title" /><xsl:text>: </xsl:text>
  161.                                     <a title="{Notes}" href="eliblink://{$BookID}/{@ID}" class="link"><xsl:value-of select="Path" /></a>
  162.                                     <xsl:if test="position()!=last()"><br/></xsl:if>
  163.                                 </xsl:for-each>
  164.                             </td></tr>
  165.                         </table>
  166.                     </xsl:if>
  167.                     <!-- categories -->
  168.                     <xsl:if test="Categories!=''">
  169.                         <table border="0" cellspacing="1" cellpadding="0" width="100%">
  170.                             <tr>
  171.                                 <td class="subtitle">Θí₧σêÑ</td>
  172.                             </tr>
  173.                             <tr><td class="cellalt">
  174.                                 <xsl:for-each select="Categories/Category">
  175.                                     <b><xsl:number format=" 1. "/></b>
  176.                                     <a title="Φ╜ëσê░Φ⌐▓Θí₧σêÑ" href="elibcat://{@ID}" class="link"><xsl:value-of select="." /></a>
  177.                                     <xsl:if test="position()!=last()"><br/></xsl:if>
  178.                                 </xsl:for-each>
  179.                             </td></tr>
  180.                         </table>
  181.                     </xsl:if>
  182.                     <!-- personal details -->
  183.                     <table border="0" cellspacing="1" cellpadding="0" width="100%">
  184.                         <tr>
  185.                             <td valign="top" class="detailsbg" width="50%">
  186.                                 <table border="0" cellspacing="1" cellpadding="0" width="100%">
  187.                                     <tr>
  188.                                         <td class="subtitle" colspan="2">σÇïΣ║║Φ│çΦ¿è</td>
  189.                                     </tr>
  190.                                     <xsl:if test="Store!=''">
  191.                                         <tr valign="top">
  192.                                             <td class="celllabel" width="10%" nowrap="1">µ¢╕σòå</td>
  193.                                             <td class="cellvalue">
  194.                                                 <xsl:value-of select="Store" />
  195.                                             </td>
  196.                                         </tr>
  197.                                     </xsl:if>
  198.                                     <xsl:if test="Location!=''">
  199.                                         <tr valign="top">
  200.                                             <td class="celllabel" width="10%" nowrap="1">σ¡ÿµö╛Σ╜ìτ╜«</td>
  201.                                             <td class="cellvalue">
  202.                                                 <xsl:value-of select="Location" />
  203.                                             </td>
  204.                                         </tr>
  205.                                     </xsl:if>
  206.                                     <xsl:if test="PurchasePrice!=''">
  207.                                         <tr valign="top">
  208.                                             <td class="celllabel" width="10%" nowrap="1">Φ│╝Φ▓╖σâ╣µá╝</td>
  209.                                             <td class="cellvalue">
  210.                                                 <xsl:value-of select="PurchasePrice" />
  211.                                             </td>
  212.                                         </tr>
  213.                                     </xsl:if>
  214.                                     <xsl:if test="PurchaseDate!=''">
  215.                                         <tr valign="top">
  216.                                             <td class="celllabel" width="10%" nowrap="1">Φ│╝Φ▓╖µùѵ£ƒ</td>
  217.                                             <td class="cellvalue">
  218.                                                 <xsl:value-of select="PurchaseDate" />
  219.                                             </td>
  220.                                         </tr>
  221.                                     </xsl:if>
  222.                                     <xsl:if test="Status!=''">
  223.                                         <tr valign="top">
  224.                                             <td class="celllabel" width="10%" nowrap="1">τïǵàï</td>
  225.                                             <td class="cellvalue">
  226.                                                 <xsl:value-of select="Status" />
  227.                                             </td>
  228.                                         </tr>
  229.                                     </xsl:if>
  230.                                     <xsl:if test="LoanedTo!=''">
  231.                                         <tr valign="top">
  232.                                             <td class="celllabel" width="10%" nowrap="1">σǃσç║</td>
  233.                                             <td class="cellvalue">
  234.                                                 <xsl:value-of select="LoanedTo" />
  235.                                             </td>
  236.                                         </tr>
  237.                                     </xsl:if>
  238.                                     <xsl:if test="LoanDate!=''">
  239.                                         <tr valign="top">
  240.                                             <td class="celllabel" width="10%" nowrap="1">σǃσç║µùѵ£ƒ</td>
  241.                                             <td class="cellvalue">
  242.                                                 <xsl:value-of select="LoanDate" />
  243.                                             </td>
  244.                                         </tr>
  245.                                     </xsl:if>
  246.                                     <xsl:if test="DueDate!=''">
  247.                                         <tr valign="top">
  248.                                             <td class="celllabel" width="10%" nowrap="1">µç뵡╕Θéäµùѵ£ƒ</td>
  249.                                             <td class="cellvalue">
  250.                                                 <xsl:value-of select="DueDate" />
  251.                                             </td>
  252.                                         </tr>
  253.                                     </xsl:if>
  254.                                     <xsl:if test="ReturnDate!=''">
  255.                                         <tr valign="top">
  256.                                             <td class="celllabel" width="10%" nowrap="1">σ»ªΘÜ¢µ¡╕Θéäµùѵ£ƒ</td>
  257.                                             <td class="cellvalue">
  258.                                                 <xsl:value-of select="ReturnDate" />
  259.                                             </td>
  260.                                         </tr>
  261.                                     </xsl:if>
  262.                                     <xsl:if test="LoanNotes!=''">
  263.                                         <tr valign="top">
  264.                                             <td class="celllabel" width="10%" nowrap="1">σǃσç║ΘÖäΦ¿╗</td>
  265.                                             <td class="cellvalue">
  266.                                                 <xsl:value-of select="LoanNotes" />
  267.                                             </td>
  268.                                         </tr>
  269.                                     </xsl:if>
  270.                                     <xsl:if test="EbookOnly!=''">
  271.                                         <tr valign="top">
  272.                                             <td class="celllabel" width="10%" nowrap="1">σŬµ£ëΘ¢╗σ¡Éτëê</td>
  273.                                             <td class="cellvalue">
  274.                                                 <xsl:value-of select="EbookOnly" />
  275.                                             </td>
  276.                                         </tr>
  277.                                     </xsl:if>
  278.                                     <xsl:if test="Format!=''">
  279.                                         <tr valign="top">
  280.                                             <td class="celllabel" width="10%" nowrap="1">µá╝σ╝Å</td>
  281.                                             <td class="cellvalue">
  282.                                                 <xsl:value-of select="Format" />
  283.                                             </td>
  284.                                         </tr>
  285.                                     </xsl:if>
  286.                                     <xsl:if test="BookSize!=''">
  287.                                         <tr valign="top">
  288.                                             <td class="celllabel" width="10%" nowrap="1">Θ¢╗σ¡Éµ¢╕σñºσ░Å</td>
  289.                                             <td class="cellvalue">
  290.                                                 <xsl:value-of select="BookSize" /><xsl:text> MB</xsl:text>
  291.                                             </td>
  292.                                         </tr>
  293.                                     </xsl:if>
  294.                                     <xsl:if test="CurrentPage!=''">
  295.                                         <tr valign="top">
  296.                                             <td class="celllabel" width="10%" nowrap="1">τ¢«σëìΘáüµò╕</td>
  297.                                             <td class="cellvalue">
  298.                                                 <xsl:value-of select="CurrentPage" />
  299.                                             </td>
  300.                                         </tr>
  301.                                     </xsl:if>
  302.                                     <xsl:if test="UserText1!=''">
  303.                                         <tr valign="top">
  304.                                             <td class="celllabel" width="10%" nowrap="1">τö¿µê╢Φç¬Φ¿éσີûç1</td>
  305.                                             <td class="cellvalue">
  306.                                                 <xsl:value-of select="UserText1" />
  307.                                             </td>
  308.                                         </tr>
  309.                                     </xsl:if>
  310.                                     <xsl:if test="UserText2!=''">
  311.                                         <tr valign="top">
  312.                                             <td class="celllabel" width="10%" nowrap="1">τö¿µê╢Φç¬Φ¿éσີûç2</td>
  313.                                             <td class="cellvalue">
  314.                                                 <xsl:value-of select="UserText2" />
  315.                                             </td>
  316.                                         </tr>
  317.                                     </xsl:if>
  318.                                 </table>
  319.                             </td>
  320.                             <!-- end personal details -->
  321.                             <!-- begin product details -->
  322.                             <td valign="top" class="detailsbg">
  323.                                 <table border="0" cellspacing="1" cellpadding="0" width="100%">
  324.                                     <tr>
  325.                                         <td colspan="2" class="subtitle">τöóσôüΦ⌐│τ┤░Φ│çΦ¿è</td>
  326.                                     </tr>
  327.                                     <!-- binding -->
  328.                                     <xsl:if test="Binding!=''">
  329.                                         <tr valign="top">
  330.                                             <td class="celllabel" width="10%" nowrap="1">Φú¥Φ¿é</td>
  331.                                             <td class="cellvalue">
  332.                                                 <xsl:value-of select="Binding" />
  333.                                             </td>
  334.                                         </tr>
  335.                                     </xsl:if>
  336.                                     <!-- extras -->
  337.                                     <xsl:if test="Extras!=''">
  338.                                         <tr valign="top">
  339.                                             <td class="celllabel" width="10%" nowrap="1">ΘÖäΣ╗╢</td>
  340.                                             <td class="cellvalue">
  341.                                                 <xsl:value-of select="Extras" />
  342.                                             </td>
  343.                                         </tr>
  344.                                     </xsl:if>
  345.                                     <!-- language -->
  346.                                     <xsl:if test="Language!=''">
  347.                                         <tr valign="top">
  348.                                             <td class="celllabel" width="10%" nowrap="1">Φ¬₧Φ¿Ç</td>
  349.                                             <td class="cellvalue">
  350.                                                 <xsl:value-of select="Language" />
  351.                                             </td>
  352.                                         </tr>
  353.                                     </xsl:if>
  354.                                     <xsl:if test="ListPrice!=''">
  355.                                         <tr valign="top">
  356.                                             <td class="celllabel" width="10%" nowrap="1">σ«Üσâ╣</td>
  357.                                             <td class="cellvalue">
  358.                                                 <xsl:value-of select="ListPrice" />
  359.                                             </td>
  360.                                         </tr>
  361.                                     </xsl:if>
  362.                                     <xsl:if test="AmazonPrice!=''">
  363.                                         <tr valign="top">
  364.                                             <td class="celllabel" width="10%" nowrap="1">Amazonσ«Üσâ╣</td>
  365.                                             <td class="cellvalue">
  366.                                                 <xsl:value-of select="AmazonPrice" />
  367.                                             </td>
  368.                                         </tr>
  369.                                     </xsl:if>
  370.                                     <xsl:if test="Dimension!=''">
  371.                                         <tr valign="top">
  372.                                             <td class="celllabel" width="10%" nowrap="1">σ░║σ»╕</td>
  373.                                             <td class="cellvalue">
  374.                                                 <xsl:value-of select="Dimension" />
  375.                                             </td>
  376.                                         </tr>
  377.                                     </xsl:if>
  378.                                 </table>
  379.                             </td>
  380.                         </tr>
  381.                     </table>
  382.                     <!-- end product details -->
  383.                     <!-- description -->
  384.                     <xsl:if test="Description!=''">
  385.                         <table border="0" cellspacing="1" cellpadding="0" width="100%">
  386.                             <tr>
  387.                                 <td class="subtitle">Φ¬¼µÿÄ</td>
  388.                             </tr>
  389.                             <tr>
  390.                                 <td class="cellalt">
  391.                                     <xsl:value-of select="Description" disable-output-escaping="yes" />
  392.                                 </td>
  393.                             </tr>
  394.                         </table>
  395.                     </xsl:if>
  396.                     <!-- begin notes -->
  397.                     <xsl:if test="Notes!=''">
  398.                         <table border="0" cellspacing="1" cellpadding="0" width="100%">
  399.                             <tr>
  400.                                 <td class="subtitle" align="left">ΘÖäΦ¿╗</td>
  401.                             </tr>
  402.                             <tr>
  403.                                 <td class="cellalt">
  404.                                     <xsl:value-of select="Notes" disable-output-escaping="yes" />
  405.                                 </td>
  406.                             </tr>
  407.                         </table>
  408.                     </xsl:if>
  409.                 </td>
  410.             </tr>
  411.         </table>
  412.     </xsl:template>
  413. </xsl:stylesheet>
  414.